using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(MapCreate))]
public class MapCreateEditor : Editor
{
    public override void OnInspectorGUI()
    {
        base.DrawDefaultInspector();
        if (GUILayout.Button("创建地图"))
        {
            ((MapCreate)target).GenerateMap();
        }
        if (GUILayout.Button("清除地图"))
        {
            ((MapCreate)target).CleanTileMap();
        }
    }
}
